home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_5.lha
/
5_5
/
5_5e_all.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
1KB
|
54 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include <string.h>
include <ctype.h>
include <debug.h>
nt error(const char *fmt ...);
har prefix[512] = "....", *endprefix = &prefix[1];
har *incr()
*endprefix++ = '.';
*endprefix = '\0';
return prefix+1;
har *decr()
*--endprefix = '\0';
return prefix;
har *unctrl(unsigned int c)
static char x[5];
char *p = x;
if (c > 0177)
*p++ = 'M', *p++ = '-', c -= 0200;
if ((c < 040) || (c == 0177))
*p++ = '^', *p++ = c ^ 0100;
else
*p++ = c;
*p = '\0';
return x;
include "5_5A.h" /* enum exprtype */
include "5_5E.h" /* class tree, expr, token */
include "5_5a0.c" /* forward declarations */
include "5_5e5.c" /* prim() */
include "5_5e4.c" /* term() */
include "5_5e3.c" /* get_expr() */
include "5_5a2.c" /* gettoken() */
include "5_5e1.c" /* expandtree, expr::expr() */
include "5_5f2.c" /* treeval() */
include "5_5f1.c" /* expr::eval() */
include "main.c"